package com.chpro.scsw.model;



public class BaseModel {
	private Integer startRow =0;//当前页面开始行
	private Integer endRow =0;//当前页面开始行
	private Integer pageSize = 10;//每页显示多少条
	private Integer rowNum; //总共多少页
	private Integer pageNum=1;//当前页
	public Integer getStartRow() {
		return (getPageNum()-1)*getPageSize();
	}
	public void setStartRow(Integer startRow) {
		this.startRow = startRow;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public Integer getRowNum() {
		return rowNum;
	}
	public void setRowNum(Integer rowNum) {
		this.rowNum = rowNum;
	}
	public Integer getPageNum() {
		return pageNum;
	}
	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}
	public Integer getEndRow() {
        return getPageNum()*getPageSize();
	}
	public void setEndRow(Integer endRow) {
		this.endRow = endRow;
	}
	
}
